﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using STF.OrangeDog.Dtos;

namespace STF.OrangeDog.IService
{
    public interface IBlogBll
    {
        Task<int> AddBlogAsync(string Title, string Content, int Uid, DateTime PublishTime, int StateCode, int TypeId, int FbxsId, int LevelId, int GiveLike, int StepOn);
        Task<int> EditBlogAsync(int Id, string Title, string Content, int Uid, DateTime PublishTime, int StateCode, int TypeId, int FbxsId, int LevelId, int GiveLike, int StepOn);
        Task<int> DeleteBlogAsync(int Id);
        Task<IEnumerable<BlogDtos>> GetAll(int DeleteId = 1);
        Task<IEnumerable<BlogDtos>> GetDataByTitle(string Title, int DeleteId = 1);
        Task<BlogDtos> GetDataById(int Id);
    }
}
